<template>
	<div id="carouse-figure">
		<el-carousel :interval="2000" arrow="always">
			<el-carousel-item v-for="item in arr" :key="item">
				<img :src="item">
			</el-carousel-item>
		</el-carousel>
	</div>
</template>

<script>
	export default {
		data: () => {
			return {
				arr: ["https://mcake-oss.oss-cn-hangzhou.aliyuncs.com/file/7605fdaa1d6d144b/d1ed656e0faad525.jpg",
					"https://mcake-oss.oss-cn-hangzhou.aliyuncs.com/file/e52d572820b05066/3d6070d0466612e3.jpg"
				]
			}
		}
	}
</script>

<style scoped>
	#carouse-figure {
		width: 100%;
		height: 530px;
        margin:  0 auto;
	}

	.el-carousel {
		width: 100%;
		height: 530px;
	}

	.el-carousel-item {
		width: 100%;
		height: 530px;
	}

	.el-carousel__item img {
		width: 100%;
		height: 530px;
		color: #475669;
		font-size: 18px;
		opacity: 0.75;
		margin: 0;
	}

	.el-carousel__indicators--horizontal {
		background-color: red !important;
	}

	.el-carousel__item:nth-child(2n) {
		background-color: #99a9bf;
		height: 530px;
	}

	.el-carousel__item:nth-child(2n+1) {
		background-color: #d3dce6;
		height: 530px;
	}
</style>
